package com.example.communist_app_api.service;

import com.example.communist_app_api.db.pojoDto.Role;
import com.example.communist_app_api.vo.web.req.RoleShowReq;
import com.github.pagehelper.PageInfo;

import java.util.ArrayList;
import java.util.List;

public interface RoleService {
    ArrayList<Role> getRoleByRoleId(ArrayList<Integer> roleIdList);

    //分页及带条件查询
    PageInfo<Role> findPage(RoleShowReq req);
    //创建新的角色信息
    void createNewRole(String roleName);
    //根据roleId删除角色
    void deleteRoleByRoleId(Integer roleId);

    List<Role> getAllRole();

    Integer selectRoleIdByRoleName(String roleName);

    String getRoleNameByUserId(Integer userId);

    Integer getRoleIdByRoleName(String roleName);
}
